#pragma once
#include <Windows.h>
#include <string>
#include "MyArray.h"
class Client;

using namespace std;
class GuiHandler
{
	Client* client;	
	int width;
	int height;
	int leftColumbWidth;
	MyArray<string>* lines;
	MyArray<string>* userList;
	int x;
	int y;

	static DWORD WINAPI run(LPVOID pvParam);
	void gotoxy(short, short);
	wstring stringToWideString(const string&);
public:
	GuiHandler(int,int,Client*);
	~GuiHandler(void);
	void paint();
	void start();
	void myPrint(string);
	void printUserList(string);
	string readInput();
	void clearLine(int,int,int);	
};

